﻿using System;
using NUnit.Framework;

namespace CodeContrib.Tests
{
	public class GuidExtensionsTests
	{
		[Test]
		public void IsGuid_ShouldReturn_False()
		{
			// Arrange
			const bool expected = false;

			const string guid = "test";

			// Act
			var actual = guid.IsGuid();

			// Assert
			Assert.AreEqual(expected, actual);
		}

		[Test]
		public void IsGuid_ShouldReturn_True()
		{
			// Arrange
			const bool expected = true;

			var guid = Guid.NewGuid().ToString();

			// Act
			var actual = guid.IsGuid();

			// Assert
			Assert.AreEqual(expected, actual);
		}
	}
}